﻿using UnityEngine;
using System.Collections;

public class Text : MonoBehaviour
{
    string lazer = "";

	void Start ()
    {
        lazer = PlayerPrefs.GetString(this.gameObject.name);
	}
	void Update ()
    {
        
	}
    void OnGUI()
    {
        lazer = GUI.TextArea(new Rect(50, 140, Screen.width/3, Screen.height/6), lazer, 200);
        PlayerPrefs.SetString(this.gameObject.name, lazer);
        PlayerPrefs.Save();
        
        GUI.skin.textArea.normal.background = null;
        GUI.skin.textArea.active.background = null;
        GUI.skin.textArea.onHover.background = null;
        GUI.skin.textArea.hover.background = null;
        GUI.skin.textArea.onFocused.background = null;
        GUI.skin.textArea.focused.background = null;
        GUI.skin.textArea.normal.textColor = Color.black;
    }
}
